<!--
    Copyright 2016-2017, China Mobile Co., Ltd.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->

<!DOCTYPE html>
<html>
    <head lang="en">
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>OPEN-O</title>
        <link rel="shortcut icon" type="image/x-icon" href="/openoui/login/image/favicon.ico"/>

        <link rel="stylesheet" type="text/css" href="/openoui/thirdparty/css/bootstrap.min.css"/>
        <link rel="stylesheet" type="text/css" href="/openoui/thirdparty/css/font-awesome.min.css"/>
        <link rel="stylesheet" type="text/css" href="/openoui/thirdparty/css/animate-custom.css"/>

        <link rel="stylesheet" type="text/css" href="/openoui/login/css/login_mainStyle.css"/>
        <link rel="stylesheet" type="text/css" href="/openoui/login/css/login_background.css"/>
        <link rel="stylesheet" type="text/css" href="/openoui/login/css/login_inputForm.css"/>
        <link rel="stylesheet" type="text/css" href="/openoui/login/css/menu_mainStyle.css"/>

        <script type="text/javascript" src="/openoui/thirdparty/js/angular.min.js"></script>
        <script type="text/javascript" src="/openoui/thirdparty/js/jquery_1.12.4.min.js"></script>
        <script type="text/javascript" src="/openoui/thirdparty/js/jquery-ui.js"></script>
        <script type="text/javascript" src="/openoui/thirdparty/js/bootstrap.min.js"></script>
        <script type="text/javascript" src="/openoui/thirdparty/js/jquery.cookie.js"></script>

        <script type="text/javascript" src="/openoui/login/js/loginApp.js"></script>
    </head>
    <body ng-app="loginApp" ng-controller="loginCtrl">
        <h1>
            <div id="login_container">
                <div id="wrapper">
                    <div id="login" class="animate form">
                        <form ng-init="loginFormInit()" ng-submit="loginFormSubmit()">
                            <img src="/openoui/login/image/openo_logo_pantone.png" width="100%" style="display:inline"/>
                            <br/><br/><span style="color:red">{{error}}</span><br/><br/>
                            <p>
                                <label for="username" class="uname" data-icon="u">Your username</label>
                                <input id="username" name="username" required="required" type="text" ng-model="user.username" placeholder="open-o user"/>
                            </p>
                            <p>
                                <label for="password" class="youpasswd" data-icon="p">Your password</label>
                                <input id="password" name="password" required="required" type="password" ng-model="user.password" placeholder="eg. X8df!90EO"/>
                            </p>
                            <p class="keeplogin">
                                <input type="checkbox" name="loginkeeping" id="loginkeeping" ng-model="user.loginkeeping" ng-true-value="true" ng-false-value="false"/>
                                <label for="loginkeeping">Keep me logged in</label>
                            </p>
                            <p class="login button">
                                <input type="submit" value="Login"/>
                            </p>
                        </form>
                    </div>
                </div>
            </div>
        </h1>
        <div class="slideshow">
            <div class="slideshow-image" style="background-image: url('/openoui/login/image/loginBackground01.jpg')"></div>
            <div class="slideshow-image" style="background-image: url('/openoui/login/image/loginBackground02.jpg')"></div>
            <div class="slideshow-image" style="background-image: url('/openoui/login/image/loginBackground03.jpg')"></div>
            <div class="slideshow-image" style="background-image: url('/openoui/login/image/loginBackground04.jpg')"></div>
        </div>
    </body>
</html>
